package com.yima.baseproj.module.app.qa;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yima.baseproj.module.app.qa.model.AppQASearchModel;
import com.yima.baseproj.module.sys.user.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class AppQAService extends ServiceImpl<AppQAMapper, AppQAEntity> {

    @Autowired
    private SysUserService sysUserService;

    public Page<Map> findByPage(Page page, AppQASearchModel searchVo) {
        return baseMapper.findBySearchVo(page,searchVo);
    }

    public List<Map> findByList(AppQASearchModel searchVo) {
        return baseMapper.findBySearchVo(searchVo);
    }
}
